<%@ page contentType="text/html; charset=UTF-8"%>
<%@ taglib uri="/struts-tags" prefix="s"%>
<html>
	<head>
		<title>操作日志查看</title>
		<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
	</head>
	<%@ include file="/comm.jsp"%>
	<style type="text/css">
<!--
fieldset {
	padding: 10px;
	margin: 10px;
	width: 270px;
	color: #333;
}

legend {
	color: #06c;
	font-weight: 800;
}
-->
</style>

	<body>
		<s:form name="formpage" action="operlog" namespace="/">
			<div>
				<%@ include file="/messages.jsp"%>
				<fieldset>
					<legend>
						查询条件
					</legend>
					<table align="left" width="800" border="0">
						<tr>
							<td align="right">
								日期：
							</td>
							<td width="240px">
								<input id="dStartdate" name="dto.fromDate"
									value='<s:date name="#request.dto.fromDate" format="yyyy-MM-dd" />'
									size="13" class="Wdate" type="text"
									onFocus="WdatePicker({maxDate:'#F{$dp.$D(\'dEnddate\')}'})" />
								至
								<input id="dEnddate" name="dto.toDate"
									value='<s:date name="#request.dto.toDate" format="yyyy-MM-dd" />'
									size="13" class="Wdate" type="text"
									onFocus="WdatePicker({minDate:'#F{$dp.$D(\'dStartdate\')}'})" />
							</td>
							<td align="right">
								公司ID：
							</td>
							<td>
								<input id="companyId" name="dto.companyId"
									value="${dto.companyId}" maxlength="6" size="10" type="text" />
							</td>
							<td align="right">
								用户ID：
							</td>
							<td>
								<input id="userId" name="dto.userId" value="${dto.userId}"
									maxlength="30" size="15" type="text" />
							</td>
							<td>
								<input type="submit" class="button" id="ok" name="ok"
									value=" 查 询 " />
							</td>
							<td></td>
						</tr>
					</table>
				</fieldset>
			</div>
			<table border="0" cellpadding="5" cellspacing="1" class="tb_datalist">
				<tr align="center" height="28px" class="tr_title">
					<td>
						<b>公司</b>
					</td>
					<td>
						<b>用户</b>
					</td>
					<td>
						<b>时间</b>
					</td>
					<td>
						<b>详细日志</b>
					</td>
					<td>
						<b>备注</b>
					</td>
				</tr>

				<s:iterator id="sa" value="#request.list">
					<tr class="list_tr_item"
						onMouseOver="javascript:this.className='tr_selected';"
						onMouseOut="javascript:this.className='tr_even';">
						<td>
							<s:property value="#sa.companyId" />
						</td>
						<td>
							<s:property value="#sa.userId" />
						</td>
						<td align="center">
							<s:date name="#sa.operDate" format="yyyy-MM-dd HH:mm:ss" />
						</td>
						<td>
							<s:property value="#sa.content" />
						</td>
						<td>
							<s:property value="#sa.remark" />
						</td>
					</tr>
				</s:iterator>
			</table>
			<s:property value="#request.allowpage" escape="false" />
		</s:form>
	</body>
</html>
